import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

let Login = resolve => require(['@/page/Login'], resolve)
let Module = resolve => require(['@/page/Module'], resolve)

import User from "@/page/user/router"

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Module',
            component: Module,
            children: [
                User
            ]
        },
        {
            path: '/login',
            name: 'login',
            component: Login
        },
    ]
})
